//
//  Mediator+Login.m
//  JinFuThree
//
//  Created by 爱尚 on 2018/8/29.
//  Copyright © 2018年 毛韶谦. All rights reserved.
//

#import "Mediator+Login.h"

NSString *const LoginTarget = @"LoginAction";
NSString *const LoginActionMainViewController = @"mainViewController";
NSString *const LoginActionIsShowFourModule = @"isShowFourModule";
NSString *const LoginActionlogOutAction = @"logOutAction";

@implementation Mediator (Login)

-(UIViewController*_Nullable)login_mainViewController{
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:LoginTarget actionName:LoginActionMainViewController];
    return [self performWithOptions:options];
    
}



/**
 退出登录
 */
-(BOOL)Login_LogOutAction {
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:LoginTarget actionName:LoginActionlogOutAction];
    return [[self performWithOptions:options] boolValue];
}


/**
 判断展示几个模块
 
 @return YES 展示4个，NO 展示 3个；
 */
-(BOOL)Login_IsShowFourModule {
    
    MediatorOptions *options = [MediatorOptions optionsWithTargetName:LoginTarget actionName:LoginActionIsShowFourModule];
    return [[self performWithOptions:options] boolValue];
}


@end
